package com.ecut.property_project.service;

import com.ecut.property_project.model.character.Account;
import com.ecut.property_project.model.character.Role;
import com.ecut.property_project.utils.Result;

import java.util.List;

public interface AccountService {
    public List<Account> selectAll();

    public List<Account> selectByPage(Integer page, Integer pageSize);

    //这个地方不要两个密码，前端验证是否重复，只传一个密码
    public Result register(String tel, String password, String username);

    //public Map<String, String> getToken(String username, String password);

    public Account getAccount(String tel);



    public Account accountLogin(String tel, String password);

    public List<Role> getAccountRolesById(Integer id);

    public Boolean giveAccountRolesById(Integer id,String name);

    public Boolean updateAccount(Account account);

    public Boolean deleteAccount(Integer id);

    public Boolean saveList(List<Account> list);


}
